home *** CD-ROM | disk | FTP | other *** search
- Path: news.wwa.com!news
- From: theobals@wwa.com (Theo Bals)
- Newsgroups: comp.lang.c++
- Subject: GetSystemMetrics
- Date: 25 Jan 1996 04:38:54 GMT
- Organization: Your Organization
- Message-ID: <4e71gu$ja@kirin.wwa.com>
- NNTP-Posting-Host: pool4-058.wwa.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- Hi there fellow C programmers
-
- I am (trying to) use the function 'GetSyetemMetrics' to find out the
- size of a window.
- The documentation supplied with the Microsoft Visual V1.5 complier
- seems to indicate i should use GetsystemMetrics(SM_SXSCREEN) for the
- width and GetSystemMetrics(SM_CYSCREEN) for the height of the window.
- But it looks like these functions always return the values as if the
- window was maximized. I have solved my particular problem by
- 'intercepting' the WM_SIZE message from windows which gives me the size
- of the resized window in lParam but i am wondering if i am doing the
- right thing here.
- As anyone had any problems with this also?
-
- Theo.
-
-
-